"""
http 请求
"""

import requests


def get(url, params, header, cookie):
    if len(str(url)) < 1:
        raise ValueError("url cannot be null")
    header["User-Agent"] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) " \
                           "Chrome/81.0.4044.138 Safari/537.36 "
    return requests.get(url=url, params=params, header=header, cookie=cookie)
